/****************************************************************************
  ECE 486 Project 1
  PDP-8 Simulator

  global.cpp

  Global variable declarations for the program
****************************************************************************/

// PDP-8 Registers
unsigned short memory[4096];	// Memory
unsigned short LB_AC;			// Link bit_Accumulator
unsigned short PC;				// Program Counter
unsigned short IR;
unsigned short MQ;
unsigned short MB;
unsigned short CPMA;
unsigned short SR;

unsigned short KF_KB;			//Keyboard Buffer
unsigned short TF_TB;			//Teleprinter Buffer

// Counters 
int ANDcount;
int TADcount;
int ISZcount;
int DCAcount;
int JMScount;
int JMPcount;
int IOcount;
int microcount;
int totalInst;
int extraMemCycCount;
int totalCycCount;
int memWriteCount;
int memReadCount;

// Debug parameters
int debug;
int debugparam;
int debugfile;
